package com.ksframework.common.exception;

/**
 * 
 * @名称:DAOException.java
 * @作用:自定义数据库操作异常
 * 
 */
public class DAOException extends ServiceException {
	private static final long serialVersionUID = -9392333773586449L;

	public DAOException() throws RuntimeException {
		this.log.error("数据库操作出现异常");
	}

	public DAOException(String message) throws RuntimeException {
		this.log.error("数据库操作出现异常:" + message);
	}

	public DAOException(String type, String message) throws RuntimeException {
		this.log.error("数据库执行 '" + type + "' 操作出现异常:" + message);
	}
}